package com.dingreading.cloud.subject.util;

import com.dingreading.cloud.subject.entity.SubjectLessonLog;

public class SubjectUtil {

    /**
     * 课件资料访问记录
     */
    public static SubjectLessonLog saveLog(
            String corpUid, String storeUid, String staffUid, String staffName, String ip,
            int type, String lessonUid, String videoUid
    ) {
        SubjectLessonLog log = new SubjectLessonLog();
        log.setCorpUid(corpUid);
        log.setStoreUid(storeUid);
        log.setStaffUid(staffUid);
        log.setStaffName(staffName);
        log.setIp(ip);
        log.setType(type);
        log.setLessonUid(lessonUid);
        log.setVideoUid(videoUid);
        return log;
    }


    /**
     * 学科资料访问记录
     */
    public static SubjectLessonLog saveSubjectLog(
            String corpUid, String storeUid, String staffUid, String staffName, String ip,
            Long subjectId, Long fileId, int type
    ) {
        SubjectLessonLog log = new SubjectLessonLog();
        log.setCorpUid(corpUid);
        log.setStoreUid(storeUid);
        log.setStaffUid(staffUid);
        log.setStaffName(staffName);
        log.setIp(ip);
        log.setSubjectsId(subjectId);
        log.setFileId(fileId);
        log.setFileType(type);
        return log;
    }

}
